package com.atguigu.common.constant;

public class ProductConstant {

    public enum AttrEnum {
        ATTR_ENUM_SALE(0, "销售属性"),
        ATTR_ENUM_BASE(1, "基本属性");


        private Integer code;
        private String msg;

        AttrEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum Status {
        ATTR_ENUM_UP(0, "已上架"),
        ATTR_ENUM_DOWN(1, "已下架");


        private Integer code;
        private String msg;

        Status(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
